package com.example.xd.dialtest.singletest;

/**
 * @auther XuDan on 2020/1/17.
 */
public enum Single {
    INSTANCE;

    public void test() {
        System.out.println("单例测试");
    }

    public int add(int a, int b) {
        System.out.println("a+b=" + (a + b));

        return a + b;
    }
}
